package com.Design.Visitor.old;

/**
 * @Author Lc
 * @Date 2023/9/30
 * @PackageName: com.Design.Visitor
 * @ClassName: WoMan
 * @Description:
 */

public class WoMan extends Person {
    @Override
    public void getConclusion() {
        if(action.equals("成功")){
            System.out.println(this.getClass().getSimpleName() + this.action + "时,背后大多有个不成功的男人");
        }else if(action.equals("失败")){
            System.out.println(this.getClass().getSimpleName()  + this.action + "时,眼泪汪汪,谁也劝不了");
        }else if(action.equals("恋爱")){
            System.out.println(this.getClass().getSimpleName()  + this.action + "时,遇事懂也装作不懂");
        }
    }
}
